home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 January - Disc 2
/
Macworld (1999-01) (Disk 2).dmg
/
Serious Demos
/
Symbolic Composer 4.2
/
Environment
/
System
/
CADAR
/
CSound
/
r-time
< prev
next >
Wrap
Lisp/Scheme
|
1998-10-22
|
382b
|
18 lines
r-time integer or float-list
converts into actual time for use in csound
(otherwise all notes will sound at the same time)
(built into convert-to-csound function)
(setq rhy (mapcar #'len-to-sec '(1/16 1/16 1/16 1/16 1/4)))
->(0.25 0.25 0.25 0.25 1.0)
(r-time rhy)
->(0 1/4 1/2 3/4 1)
(r-time '(1 1 1 1 1))
->(0 1 2 3 4)
(r-time '(1/2 1/4 1/8 1/4 1/2.))
->(0 1/2 3/4 7/8 9/8)